package org.zfes.snowier.cloud.zbss.asf.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import org.zfes.snowier.cloud.zbss.asf.biz.service.IUserFaceInfoService;
@Component
public class StartupRunner implements CommandLineRunner{

	@Autowired
	IUserFaceInfoService userFaceInfoService;
	
	@Override
	public void run(String... args) throws Exception {
		System.out.println("---开始执行加载数据库中的用户---------");
		
		Long res=userFaceInfoService.initUserdataSet();
		
		System.out.println("---加载数据库中的用户结束-----加载用户数："+res);
		
	}

}
